package com.xuecheng.framework.domain.filesystem;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Map;

/**
 * Created by mrt on 2018/2/5.
 */
@Data
@ToString
@Document(collection = "filesystem")
@ApiModel("文件实体类")
public class FileSystem {

    @Id
    @ApiModelProperty(value = "文件id",name = "fileId")
    private String fileId;
    //文件请求路径
    @ApiModelProperty(value = "文件请求路径",name = "filePath")
    private String filePath;
    //文件大小
    @ApiModelProperty(value = "文件大小",name = "fileSizeByByte")
    private long fileSizeByByte;
    //文件大小
    @ApiModelProperty(value = "文件大小",name = "fileSizeByString")
    private String fileSizeByString;
    //文件名称
    @ApiModelProperty(value = "文件名称",name = "fileName")
    private String fileName;
    //文件类型
    @ApiModelProperty(value = "文件类型",name = "fileType")
    private String fileType;
    //图片宽度
    @ApiModelProperty(value = "图片宽度",name = "fileWidth")
    private int fileWidth;
    //图片高度
    @ApiModelProperty(value = "图片高度",name = "fileHeight")
    private int fileHeight;
    //用户id，用于授权
    @ApiModelProperty(value = "用户id，用于授权",name = "userId")
    private String userId;
    //业务key
    @ApiModelProperty(value = "业务key",name = "businesskey")
    private String businesskey;
    //业务标签
    @ApiModelProperty(value = "业务标签",name = "filetag")
    private String filetag;
    //文件元信息,可以存上传时间,等信息
    @ApiModelProperty(value = "文件元信息",name = "metadata")
    private Map metadata;
}
